package com.unlcn.ils.kas.scheduled;

import com.unlcn.ils.kas.service.constant.CronConstant;
import com.unlcn.ils.kas.service.order.GeelyService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class PushOnway2Geely {

  @Autowired
  private GeelyService service;

  @Scheduled(cron = CronConstant.GEELY_JOB)
  public void push() {
    service.uploadOnWayUnpushed();
  };

}